package com.handa.admin.webChat.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


@TableName("chat_message")
@Data
public class ChatMessageDO {

    private Long id;

    private String sender;

    private String receiver;

    private String content;

    private String fileUrl;

    private String fileName;

    private Integer messageType;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

}

